import os
from kivy.config import Config

# 设置项目根目录
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
# 获设置字体目录
FONTS_DIR = os.path.join(PROJECT_ROOT, 'fonts\msyh.ttc')
# 设置游戏数据存储路径
SAVE_FILE = os.path.join(PROJECT_ROOT, 'game_save.json')
# 设置音效文件路径
SOUNDS_DIR = os.path.join(PROJECT_ROOT, 'sounds')
# 等级配置
LEVEL_CONFIG = {
    1: {"name": "初级测试工程师", "max_level": 3, "bugs_needed": [5, 15]},
    2: {"name": "中级测试工程师", "max_level": 5, "bugs_needed": [30, 60, 100, 150]},
    3: {"name": "高级测试工程师", "max_level": 7, "bugs_needed": [200, 300, 450, 650, 900, 1200]},
    4: {"name": "测试专家", "max_level": 1, "bugs_needed": []}
}

# 测试案例库
TEST_CASES = [
    "登录功能测试",
    "用户注册流程验证",
    "支付接口测试",
    "数据库连接测试",
    "UI界面兼容性测试",
    "API性能压力测试",
    "安全漏洞扫描",
    "移动端适配测试",
    "数据导出功能测试",
    "搜索功能准确性测试",
    "购物车功能测试",
    "订单流程完整性测试",
    "消息推送功能测试",
    "文件上传下载测试",
    "第三方集成测试"
]

# 缺陷描述库
BUG_DESCRIPTIONS = {
    "一般": [
        "按钮颜色不一致",
        "文字排版轻微错位",
        "提示信息不准确",
        "页面加载稍慢",
        "输入框边框显示异常"
    ],
    "严重": [
        "功能模块无法正常使用",
        "数据保存失败",
        "用户会话异常退出",
        "支付流程中断",
        "重要功能缺失"
    ],
    "致命": [
        "系统崩溃无法启动",
        "用户数据丢失",
        "安全漏洞导致信息泄露",
        "数据库连接池耗尽",
        "内存泄漏导致服务器宕机"
    ]
}
